package com.example.day01;

import android.os.Bundle;

import androidx.databinding.DataBindingUtil;
import androidx.fragment.app.Fragment;

import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.example.day01.databinding.FragmentBlankBinding;

public class BlankFragment extends Fragment {
    private FragmentBlankBinding  binding;

    public BlankFragment() {
        // Required empty public constructor
    }

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        // Inflate the layout for this fragment
        binding = DataBindingUtil.inflate(inflater,R.layout.fragment_blank,container,false);
        binding.setUser(new UserInfo("王五","123456",18));
        return binding.getRoot();
    }
}